package cn.stylefeng.guns.modular.hx.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 出库订单表
 * </p>
 * @author zhucx
 * @since 2023-08-30
 */
@Data
@TableName("hx_order_out")
public class HxOrderOut implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 单据状态（待提交、作废、撤回、已生成）
     */
    @TableField("order_state")
    private String orderState;

    /**
     * 配送日
     */
    @TableField("peisong_time")
    private String peisongTime;

    /**
     * 订单号
     */
    @TableField("order_out_number")
    private String orderOutNumber;

    /**
     * 补货单类型（直配订单、强配订单、门店叫货、预订单）
     */
    @TableField("xlb_request_order_type")
    private String xlbRequestOrderType;

    /**
     * 单据类型（STORE_OUT(门店调出),RETURN(采购退货),WHOLESALE(批发销售),ADJUST_OUT(调整出库),TRANSFER(仓间调拨)）
     */
    @TableField("order_type")
    private String orderType;

    /**
     * 新零帮发货门店id
     */
    @TableField("xlb_set_unit_id")
    private String xlbSetUnitId;

    /**
     * 发货单位id
     */
    @TableField("set_unit_id")
    private Long setUnitId;

    /**
     * 发货单位
     */
    @TableField("set_unit")
    private String setUnit;

    /**
     * 发货地址
     */
    @TableField("set_location")
    private String setLocation;

    /**
     * 发货地址id
     */
    @TableField("set_location_id")
    private Long setLocationId;

    /**
     * 联系人
     */
    @TableField("set_people")
    private String setPeople;

    /**
     * 电话
     */
    @TableField("set_tel")
    private String setTel;

    /**
     * 新零帮发货仓库id
     */
    @TableField("xlb_set_warehouse_id")
    private String xlbSetWarehouseId;

    /**
     * 发货仓库id
     */
    @TableField("set_warehouse_id")
    private Long setWarehouseId;

    /**
     * 发货仓库
     */
    @TableField("set_warehouse")
    private String setWarehouse;

    /**
     * 新零帮收货客户id
     */
    @TableField("xlb_client_id")
    private String xlbClientId;

    /**
     * 收货客户id
     */
    @TableField("get_unit_id")
    private Long getUnitId;

    /**
     * 收货客户
     */
    @TableField("get_unit")
    private String getUnit;

    /**
     * 收货地址
     */
    @TableField("get_location")
    private String getLocation;

    /**
     * 收货地址id
     */
    @TableField("get_location_id")
    private Long getLocationId;

    /**
     * 联系人
     */
    @TableField("get_people")
    private String getPeople;

    /**
     * 电话
     */
    @TableField("get_tel")
    private String getTel;

    /**
     * 商品数
     */
    @TableField("goods_num")
    private String goodsNum;

    /**
     * 数量
     */
    @TableField("out_num")
    private String outNum;

    /**
     * 整件数量
     */
    @TableField("z_num")
    private String zNum;

    /**
     * 拆零数量
     */
    @TableField("l_num")
    private String lNum;

    /**
     * 体积
     */
    @TableField("out_volume")
    private String outVolume;

    /**
     * 创建人
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 提交人
     */
    @TableField("submit_user_name")
    private String submitUserName;

    /**
     * 撤销人
     */
    @TableField("revoke_user_name")
    private String revokeUserName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 提交时间
     */
    @TableField("submit_time")
    private Date submitTime;

    /**
     * 撤销时间
     */
    @TableField("revoke_time")
    private Date revokeTime;

    /**
     * 完成时间
     */
    @TableField("complete_time")
    private Date completeTime;

    /**
     * 备注
     */
    @TableField("notes")
    private String notes;

    /**
     * 关联单据
     */
    @TableField("association_order")
    private String associationOrder;

    /**
     * 关联单据类型
     */
    @TableField("association_order_type")
    private String associationOrderType;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品码
     */
    @TableField("goods_pcode69")
    private String goodsPcode69;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 换算率
     */
    @TableField("rate")
    private String rate;

    /**
     * 数量
     */
    @TableField("ps_num")
    private String psNum;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    /**
     * v3
     */
    @TableField("v3")
    private String v3;

    /**
     * v4
     */
    @TableField("v4")
    private String v4;

    /**
     * v5
     */
    @TableField("v5")
    private String v5;

    /**
     * v6
     */
    @TableField("v6")
    private String v6;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * v6
     */
    @TableField("get_unit_remark")
    private String getUnitRemark;

    @Override
    public String toString() {
        return "HxOrderOut{" +
        "id=" + id +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", orderState=" + orderState +
        ", peisongTime=" + peisongTime +
        ", orderOutNumber=" + orderOutNumber +
        ", orderType=" + orderType +
        ", setUnitId=" + setUnitId +
        ", setUnit=" + setUnit +
        ", setWarehouseId=" + setWarehouseId +
        ", setWarehouse=" + setWarehouse +
        ", getUnitId=" + getUnitId +
        ", getUnit=" + getUnit +
        ", goodsNum=" + goodsNum +
        ", outNum=" + outNum +
        ", zNum=" + zNum +
        ", lNum=" + lNum +
        ", outVolume=" + outVolume +
        ", createUserName=" + createUserName +
        ", submitUserName=" + submitUserName +
        ", revokeUserName=" + revokeUserName +
        ", createTime=" + createTime +
        ", submitTime=" + submitTime +
        ", revokeTime=" + revokeTime +
        ", completeTime=" + completeTime +
        ", notes=" + notes +
        ", associationOrder=" + associationOrder +
        ", associationOrderType=" + associationOrderType +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsPcode69=" + goodsPcode69 +
        ", goodsSpecs=" + goodsSpecs +
        ", unit=" + unit +
        ", rate=" + rate +
        ", psNum=" + psNum +
        ", v1=" + v1 +
        ", v2=" + v2 +
        ", v3=" + v3 +
        ", v4=" + v4 +
        ", v5=" + v5 +
        ", v6=" + v6 +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        "}";
    }
}
